package com.itheima.reggie.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.entity.Dish;
import lombok.Synchronized;


import java.util.List;

public interface DishService extends IService<Dish> {

    IPage<Dish> sleectPage(Integer pageNumber, Integer pageSize,String name);

    boolean deleteList(List<Long> ids);

    boolean updateStatusx(Integer state, List<Long> ids);

    boolean addDish(DishDto dish);

    List<Dish>selectList(Long categoryId,Integer status);

    Dish getID(Long id);

     Dish  selectID(Long selectID);
}
